From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 2 May 2006 16:23:21 +0000 (+0100) Subject: Balloon driver should hijack the ->lru list field rather than X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16108^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9a10a080aa1f28c88312b9cf3b229b3dcd169e63;p=xen.git Balloon driver should hijack the ->lru list field rather than adding another list field to every page structure. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c index 1a7216c8bd..58638a5d98 100644 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c @@ -94,8 +94,8 @@ static void balloon_process(void *unused); static DECLARE_WORK(balloon_worker, balloon_process, NULL); static struct timer_list balloon_timer; -#define PAGE_TO_LIST(p) (&(p)->ballooned) -#define LIST_TO_PAGE(l) list_entry((l), struct page, ballooned) +#define PAGE_TO_LIST(p) (&(p)->lru) +#define LIST_TO_PAGE(l) list_entry((l), struct page, lru) #define UNLIST_PAGE(p) \ do { \ list_del(PAGE_TO_LIST(p)); \ diff --git a/linux-2.6-xen-sparse/include/linux/mm.h b/linux-2.6-xen-sparse/include/linux/mm.h index 946f3e52a5..338f482358 100644 --- a/linux-2.6-xen-sparse/include/linux/mm.h +++ b/linux-2.6-xen-sparse/include/linux/mm.h @@ -247,9 +247,6 @@ struct page { }; #if NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS spinlock_t ptl; -#endif -#ifdef CONFIG_XEN - struct list_head ballooned; #endif }; pgoff_t index; /* Our offset within mapping. */